import 'package:library_base/entities/deliver_goods_entity.dart';
import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/distribution_child_entity.dart';

DeliverGoodsEntity $DeliverGoodsEntityFromJson(Map<String, dynamic> json) {
  final DeliverGoodsEntity loginBeanEntity = DeliverGoodsEntity();

  // final List<DistributionChildEntity> distributionDetailTaskResList =
  //     jsonConvert.convertList<DistributionChildEntity>(json['distributionDetailTaskResList']);
  // loginBeanEntity.distributionDetailTaskResList = distributionDetailTaskResList;
  //
  // final String? id = jsonConvert.convert<String>(json['id']);
  // if (id != null) {
  //   loginBeanEntity.id = id;
  // }
  //
  // final String? distributionCode = jsonConvert.convert<String>(json['distributionCode']);
  // if (distributionCode != null) {
  //   loginBeanEntity.distributionCode = distributionCode;
  // }
  //
  // final double? goodsNumber = jsonConvert.convert<double>(json['goodsNumber']);
  // if (goodsNumber != null) {
  //   loginBeanEntity.goodsNumber = goodsNumber;
  // }
  //
  // final String? loadingTime = jsonConvert.convert<String>(json['loadingTime']);
  // loginBeanEntity.loadingTime = loadingTime??'';
  //
  // final double? freightAmt = jsonConvert.convert<double>(json['freightAmt']);
  // loginBeanEntity.freightAmt = freightAmt??0.0;
  //
  // final String? status = jsonConvert.convert<String>(json['status']);
  // if (status != null) {
  //   loginBeanEntity.status = status;
  // }
  //
  // final String? carNo = jsonConvert.convert<String>(json['carNo']);
  // loginBeanEntity.carNo = carNo;
  //
  // final String? driverName = jsonConvert.convert<String>(json['driverName']);
  // loginBeanEntity.driverName = driverName;
  //
  // final String? driverMobile = jsonConvert.convert<String>(json['driverMobile']);
  // loginBeanEntity.driverMobile = driverMobile;

  return loginBeanEntity;
}

Map<String, dynamic> $DeliverGoodsEntityToJson(DeliverGoodsEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  // data['id'] = entity.id;
  // data['distributionCode'] = entity.distributionCode;
  // data['goodsNumber'] = entity.goodsNumber;
  // data['loadingTime'] = entity.loadingTime;
  // data['freightAmt'] = entity.freightAmt;
  // data['status'] = entity.status;
  // data['carNo'] = entity.carNo;
  // data['driverName'] = entity.driverName;
  // data['driverMobile'] = entity.driverMobile;
  return data;
}
